
package Model;

import Model.Employee;
import Model.Order;
import java.util.ArrayList;


public class CashRegister {
    private Employee employee;
    private ArrayList<Order> orderList;
    private double cashOnHand;
    
    //constructor
    public CashRegister(Employee emp){
        this.employee = emp;
        orderList = new ArrayList<Order>();
        cashOnHand = 500;
    }

    //getter setter
    
    public double getCashOnHand() {
        return cashOnHand;
    }

    public void setCashOnHand(double cashOnHand) {
        this.cashOnHand = cashOnHand;
    }
    
    public void acceptAmount(double amountIn){ //accept money from customer 
		cashOnHand = cashOnHand + amountIn;
    }

    public ArrayList<Order> getOrderList() {
        return orderList;
    }

    public void setOrderList(ArrayList<Order> orderList) {
        this.orderList = orderList;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }
    
    
}
